<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="apple-mobile-web-app-capable" content="no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <title>news</title>
    <link rel="stylesheet" type="text/css" href="/css/style.css?<?= $time;?>" />

    <script src="/js/lvdong/zepto.min.js<?= $time;?>"></script>
    <script src="/js/lvdong/touch.js<?= $time;?>"></script>
</head>
<body>
<?php $this->beginBody() ?>

<div class="wrap">
    <header class="header">
        <a href="#"><img src="./images/logo-news.png" class="logo"/></a>
    </header>

    <div class="container">
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= Alert::widget() ?>
        <?= $content ?>
    </div>
</div>

<footer class="footer">
    <ul class="nav">
        <li><a href="#" class="index">首页</a></li>
        <li class="cur"><a href="#" class="news">快讯</a></li>
        <li><a href="#" class="about">关于</a></li>
    </ul>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
